package compilers.exceptions;

import antlr.RecognitionException;

public class SyntacticalException extends Exception {
	
	private org.antlr.runtime.RecognitionException fInfo;

	public SyntacticalException(org.antlr.runtime.RecognitionException e) {
		fInfo = e;
	}
	
	public String getMessage() {
		return "[ERROR] Syntax error at line " + fInfo.line + ", position " + fInfo.charPositionInLine;
	}
}
